home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Add-Ons / MPW / MPW noweb 2.7 / src / c / Makefile < prev    next >
Encoding:
Makefile  |  1995-10-01  |  6.3 KB  |  169 lines  |  [TEXT/MPS ]

  1. # Copyright 1991 by Norman Ramsey.  All rights reserved.
  2. # See file COPYRIGHT for more information.
  3. #
  4. # Adjust these two lines for your ANSI C compiler
  5.  
  6. C68K                    =  MWC68K
  7. CPPC                    =  MWCPPC
  8. COptions             =     -w off -d DEBUGGING -d macintosh -sym on -mbg on
  9. COptions68K         =     {COptions} -mc68020 -model far
  10. COptionsPPC         =     {COptions} 
  11. Link68K                =    MWLink68K -mpwtool
  12. LinkPPC                =    MWLinkPPC -application -c 'MPS ' -t 'MPST'
  13. LOptions                =     -sym on -w
  14. LOptions68K            =     {LOptions} -model far
  15. LOptionsPPC            =     {LOptions}
  16. ROptions             =     -i :
  17.  
  18. LibFiles68K    =            "{MW68KLibraries}GUSIDispatch.Lib.68K"            ∂
  19.                             "{MW68KLibraries}GUSIMPW.Lib.68K"                ∂
  20.                             "{MW68KLibraries}MPW ANSI (4i/F/8d) C.68K.Lib"    ∂
  21.                             "{MW68KLibraries}MacOS.Lib"                        ∂
  22.                             "{MW68KLibraries}CPlusPlus.lib"                    ∂
  23.                             "{MW68KLibraries}GUSI.Lib.68K"                    ∂
  24.                             "{MW68KLibraries}ToolLibs.o"                        ∂
  25.                             "{MW68KLibraries}MathLib68K (4i/f/8d).Lib"    ∂
  26.                             "{MW68KLibraries}PLStringFuncs.glue.lib"
  27.  
  28. LibFilesPPC    =            "{MWPPCLibraries}GUSIMPW.Lib.PPC"                ∂
  29.                             "{MWPPCLibraries}GUSI.Lib.PPC"                    ∂
  30.                             "{MWPPCLibraries}MWStdCRuntime.Lib"                ∂
  31.                             "{MWPPCLibraries}InterfaceLib"                    ∂
  32.                             "{MWPPCLibraries}ANSI (NL) C++.PPC.Lib"        ∂
  33.                             "{MWPPCLibraries}ANSI (NL) C.PPC.Lib"            ∂
  34.                             "{MWPPCLibraries}StdCLib"                            ∂
  35.                             "{MWPPCLibraries}MathLib"                            ∂
  36.                             "{MWPPCLibraries}PPCToolLibs.o"
  37.  
  38. # after installation, make doc.dvi for literate version
  39.  
  40. O                    =    :Obj:
  41. FINDUSESOBJS68K    =        ∂
  42.     {O}columns.c.o.68K     {O}errors.c.o.68K     {O}finduses.c.o.68K     {O}match.c.o.68K         ∂
  43.     {O}getline.c.o.68K     {O}recognize.c.o.68K
  44. MNTOBJS68K            =        ∂
  45.     {O}mnt.c.o.68K         {O}getline.c.o.68K     {O}match.c.o.68K         {O}modules.c.o.68K     ∂
  46.     {O}modtrees.c.o.68K     {O}notangle.c.o.68K     {O}strsave.c.o.68K     {O}errors.c.o.68K         ∂
  47.     {O}columns.c.o.68K
  48. TANGLEOBJS68K        =        ∂
  49.     {O}notangle.c.o.68K     {O}getline.c.o.68K     {O}match.c.o.68K         {O}modules.c.o.68K     ∂
  50.     {O}modtrees.c.o.68K     {O}strsave.c.o.68K     {O}main.c.o.68K         {O}errors.c.o.68K         ∂
  51.     {O}columns.c.o.68K
  52. MARKUPOBJS68K        =        ∂
  53.     {O}markmain.c.o.68K     {O}strsave.c.o.68K     {O}markup.c.o.68K     {O}errors.c.o.68K         ∂
  54.     {O}getline.c.o.68K     {O}columns.c.o.68K
  55. FINDUSESOBJSPPC    =        ∂
  56.     {O}columns.c.o.PPC     {O}errors.c.o.PPC     {O}finduses.c.o.PPC     {O}match.c.o.PPC         ∂
  57.     {O}getline.c.o.PPC     {O}recognize.c.o.PPC
  58. MNTOBJSPPC            =        ∂
  59.     {O}mnt.c.o.PPC         {O}getline.c.o.PPC     {O}match.c.o.PPC         {O}modules.c.o.PPC     ∂
  60.     {O}modtrees.c.o.PPC     {O}notangle.c.o.PPC     {O}strsave.c.o.PPC     {O}errors.c.o.PPC         ∂
  61.     {O}columns.c.o.PPC
  62. TANGLEOBJSPPC        =        ∂
  63.     {O}notangle.c.o.PPC     {O}getline.c.o.PPC     {O}match.c.o.PPC         {O}modules.c.o.PPC     ∂
  64.     {O}modtrees.c.o.PPC     {O}strsave.c.o.PPC     {O}main.c.o.PPC         {O}errors.c.o.PPC         ∂
  65.     {O}columns.c.o.PPC
  66. MARKUPOBJSPPC        =        ∂
  67.     {O}markmain.c.o.PPC     {O}strsave.c.o.PPC     {O}markup.c.o.PPC     {O}errors.c.o.PPC         ∂
  68.     {O}getline.c.o.PPC     {O}columns.c.o.PPC
  69. FILES                =        ∂
  70.     markmain.nw     markup.nw         main.nw         notangle.nw        match.nw         ∂
  71.     mnt.nw             modules.nw         modtrees.nw finduses.nw     recognize.nw     ∂
  72.     getline.nw         columns.nw         errors.nw     strsave.nw 
  73. SRCS                =        ∂
  74.     columns.h         errors.h         getline.h     markup.h         match.h             ∂
  75.     modtrees.h         modules.h         notangle.h     recognize.h     strsave.h         ∂
  76.     columns.c         errors.c         getline.c     finduses.c         main.c             ∂
  77.     markmain.c         markup.c         match.c         mnt.c             modtrees.c        ∂
  78.     modules.c         notangle.c         readme.c     recognize.c     strsave.c
  79.  
  80. :Obj:                ƒ    :
  81. .c.o.68K            ƒ    .c
  82.     {C68K} {COptions68K} -s {Default} {DepDir}{Default}.c -o {TargDir}{Default}.c.o.68K
  83. .c.o.PPC            ƒ    .c
  84.     {CPPC} {COptionsPPC} -s {Default} {DepDir}{Default}.c -o {TargDir}{Default}.c.o.PPC
  85. .tex                ƒ    .nw
  86.     noweave {Default}.nw >{Default}.tex
  87. .c                    ƒ    .nw
  88.     notangle {Default}.nw>{Default}.c
  89. .h                    ƒ    .nw
  90.     notangle -Rheader {Default}.nw | cpif {Default}.h
  91.  
  92. all                ƒ    nt markup mnt finduses
  93.  
  94. nt.68K            ƒ    {TANGLEOBJS68K}
  95.     {Link68K} {LOptions68K} -o nt.68K {LibFiles68K} {TANGLEOBJS68K}
  96. nt.PPC            ƒ    {TANGLEOBJSPPC}
  97.     {LinkPPC} {LOptionsPPC} -o nt.PPC {LibFilesPPC} {TANGLEOBJSPPC}
  98. nt ƒ nt.68K nt.PPC
  99.     Duplicate -y nt.PPC nt
  100.     Echo 'Include "nt.68K" '∂''CODE'∂'';Include "nt.68K" '∂''DATA'∂'';' ∂
  101.         | Rez -a -c 'MPS ' -t MPST -o nt
  102.     UnPreload nt
  103.  
  104. finduses.68K    ƒ    {FINDUSESOBJS68K}
  105.     {Link68K} {LOptions68K} -o finduses.68K {LibFiles68K} {FINDUSESOBJS68K}
  106. finduses.PPC    ƒ    {FINDUSESOBJSPPC}
  107.     {LinkPPC} {LOptionsPPC} -o finduses.PPC {LibFilesPPC} {FINDUSESOBJSPPC}
  108. finduses ƒ finduses.68K finduses.PPC
  109.     Duplicate -y finduses.PPC finduses
  110.     Echo 'Include "finduses.68K" '∂''CODE'∂'';Include "finduses.68K" '∂''DATA'∂'';' ∂
  111.         | Rez -a -c 'MPS ' -t MPST -o finduses
  112.     UnPreload finduses
  113.  
  114. markup.68K        ƒ    {MARKUPOBJS68K}
  115.     {Link68K} {LOptions68K} -o markup.68K {LibFiles68K} {MARKUPOBJS68K}
  116. markup.PPC        ƒ    {MARKUPOBJSPPC}
  117.     {LinkPPC} {LOptionsPPC} -o markup.PPC {LibFilesPPC} {MARKUPOBJSPPC}
  118. markup ƒ markup.68K markup.PPC
  119.     Duplicate -y markup.PPC markup
  120.     Echo 'Include "markup.68K" '∂''CODE'∂'';Include "markup.68K" '∂''DATA'∂'';' ∂
  121.         | Rez -a -c 'MPS ' -t MPST -o markup
  122.     UnPreload markup
  123.  
  124. mnt.68K            ƒ    {MNTOBJS68K}
  125.     {Link68K} {LOptions68K} -o mnt.68K {LibFiles68K} {MNTOBJS68K}
  126. mnt.PPC            ƒ    {MNTOBJSPPC}
  127.     {LinkPPC} {LOptionsPPC} -o mnt.PPC {LibFilesPPC} {MNTOBJSPPC}
  128. mnt                 ƒ mnt.68K mnt.PPC
  129.     Duplicate -y mnt.PPC mnt
  130.     Echo 'Include "mnt.68K" '∂''CODE'∂'';Include "mnt.68K" '∂''DATA'∂'';' ∂
  131.         | Rez -a -c 'MPS ' -t MPST -o mnt
  132.     UnPreload mnt
  133.  
  134. source            ƒ    {SRCS}
  135.  
  136. #    clean: ;    rm -f nt markup mnt finduses
  137. #        rm -f core *.makelog *.tex *.log *.blg *.dvi *.o *.toc *~ 
  138.  
  139. #    veryclean:    clean
  140. #            rm -f $(SRCS)
  141.  
  142. #    checkin:    $(FILES) doc.nw
  143. #            ci -n'$(NAME)' -l -f -m'checked in as version named $(NAME)' $(FILES) doc.nw
  144.  
  145. #    doc.tex:    doc.nw
  146. #        cp doc.nw doc.tex
  147.  
  148. #    allcode.tex: $(FILES)
  149. #        noweave -n -index $(FILES) > allcode.tex
  150.  
  151. #    doc.dvi:    doc.tex allcode.tex
  152. #        latex doc
  153.  
  154. {O}columns.c.o        ƒ    columns.h 
  155. {O}errors.c.o        ƒ    errors.h 
  156. {O}finduses.c.o    ƒ    errors.h match.h getline.h recognize.h 
  157. {O}getline.c.o        ƒ    columns.h errors.h getline.h 
  158. {O}main.c.o            ƒ    notangle.h errors.h columns.h 
  159. {O}markmain.c.o    ƒ    errors.h markup.h getline.h columns.h 
  160. {O}markup.c.o        ƒ    markup.h strsave.h errors.h 
  161. {O}match.c.o        ƒ    match.h 
  162. {O}mnt.c.o            ƒ    modules.h modtrees.h notangle.h errors.h columns.h strsave.h 
  163. {O}modtrees.c.o    ƒ    strsave.h modules.h modtrees.h errors.h 
  164. {O}modules.c.o        ƒ    modules.h modtrees.h errors.h columns.h strsave.h 
  165. {O}notangle.c.o    ƒ     strsave.h getline.h modules.h modtrees.h notangle.h errors.h 
  166. {O}readme.c.o        ƒ       
  167. {O}recognize.c.o    ƒ  
  168. {O}strsave.c.o        ƒ    strsave.h errors.h 
  169.